/**
 * Created by CZ on 2017/5/3.
 */
module.exports = function ($scope) {
    // var vm = this;
    $scope.click = function(val) {
        if ($scope.readonly) {
            return;
        }
        $scope.ratingValue = val;
    };
    $scope.over = function(val) {
        if ($scope.readonly) {
            return;
        }
        $scope.hoverValue = val;
    };
    $scope.leave = function() {
        $scope.onLeave();
    }
};